package com.tech.connect.api;

import com.tech.connect.model.ItemLvXin;
import com.tech.connect.model.PagerModel;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

public class MyHttp {
    public static Map<String, Object> getMap() {
        return new HashMap<>();
    }
    public interface ConnectApiServer {
        @POST("v1/my/follow/page")
        Observable<BaseEntity<PagerModel<ItemLvXin>>> myGuanZhu(@Body Map<String, Object> map);

    }

    public static Observable<BaseEntity<PagerModel<ItemLvXin>>> myGuanZhu(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemLvXin>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).myGuanZhu(map));
    }

}
